notebook: update tab area allocation when switching page
authorCosimo Cecchi <cosimoc@gnome.org>
Mon, 24 Oct 2011 17:12:21 +0000 (13:12 -0400)
committerCosimo Cecchi <cosimoc@gnome.org>
Mon, 24 Oct 2011 17:19:39 +0000 (13:19 -0400)
commitccdc3c18028925565f252e7259aefe2b27e3ec2e
treeaeb06dadcaf314fddf5af9dea12d882e96778519
parent16343bc9a9fe041b0f69fb1570d11c3e2d5e6f4d
notebook: update tab area allocation when switching page

When the active page is switched, it's important
gtk_notebook_pages_allocate() is called after the bulk of
gtk_notebook_real_switch_page() is run, as the former allocates a
different space according to the currently active tab, which is set by
the latter.
gtk_notebook_pages_allocate() already calls gtk_notebook_redraw_tabs()
when the allocation changes, so just move its call down to
gtk_notebook_real_switch_page() to fix the bug.

https://bugzilla.gnome.org/show_bug.cgi?id=662629
gtk/gtknotebook.c